package pl.piasecki;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.ws.Service;

import pl.test.Echo;
import pl.test.TestService;

public class Main {

	public void echo() {
	}

	public static void main(String[] args) {

		URL url;
		try {
			url = new URL("http://localhost:8081/WebServiceExample/test?wsdl");
			Service service = new TestService(url);
			Echo hello = service.getPort(Echo.class);
			System.err.println(hello.echo("foo"));
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}

	}
}
